package org.codert.codertadmin.web.controller;

import lombok.RequiredArgsConstructor;
import org.codert.codertadmin.domain.mapper.GoodsMapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: TanJingyu
 * @create: 2021-08-10 11:26
 **/
@RestController
@RequestMapping("/goods")
@RequiredArgsConstructor
public class GoodsController {
    private final GoodsMapper mapper;

    @GetMapping
    public Object list() {
        return mapper.selectAll();
    }
}
